package com.bfmet.entity;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.bfmet.common.base.EntityBase;

@Entity
@Table(name="BFMET_METAL")
public class Metal extends EntityBase {

	private static final long serialVersionUID = 1397102047603731641L;
	@Enumerated(EnumType.STRING)
	public Type type;

	public enum Type {
		Cu("铜"), Al("铝"), Pb("铅"), Zn("锌"), Sn("锡"), Ni("镍");
		String cnName;

		private Type(String name) {
			this.cnName = name;
		}

		public String getCnName() {
			return cnName;
		}
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

}
